# from django.contrib.auth.models import User
from user.models import CdUser
from django.db import models
from thinghoo_library.models import TimeModel

from product.models import Product

# Create your models here.


class Project(TimeModel):
    name = models.CharField(max_length=255)
    content = models.TextField()
    incharger = models.ForeignKey(CdUser, verbose_name="负责人", on_delete=models.DO_NOTHING)
    product = models.ForeignKey(
        Product, name="product", verbose_name="产品", on_delete=models.CASCADE
    )
